import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import indexV2list from '../views/indexV2list.vue'
import indexV2voice from '../views/indexV2voice.vue'
import login from '../views/login.vue'
  Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/home',
    name: '首页',
    component: () => import(/* webpackChunkName: "about" */ '../views/indexV2-首页.vue')
  },
  {
    path: '/indexV2list',
    name: 'indexV2list',
    component: () => import(/* webpackChunkName: "about" */ '../views/indexV2list.vue')
  },
  {
    path: '/indexV2voice',
    name: 'indexV2voice',
    component: () => import(/* webpackChunkName: "voice" */ '../views/indexV2voice.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "login" */ '../views/login.vue')
  }

]

const router = new VueRouter({
  routes
})

export default router
